home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / psz80a14.arc / MNEMLEV1.ASM < prev    next >
Encoding:
Assembly Source File  |  1988-03-24  |  10.3 KB  |  493 lines

  1.          .org 0               ;z80 mnemonics test
  2.          adc a,h'00
  3.          adc a,h'ff
  4.          adc a,a
  5.          adc a,b
  6.          adc a,c
  7.          adc a,d
  8.          adc a,e
  9.          adc a,h
  10.          adc a,l
  11.          adc a,(hl)
  12.          adc a,(ix+-128)
  13.          adc a,(ix-128)
  14.          adc a,(iy-128)
  15.          adc a,(iy+127)
  16.          adc hl,bc
  17.          adc hl,de
  18.          adc hl,hl
  19.          adc hl,sp
  20.          add a,h'00
  21.          add a,h'ff
  22.          add a,a
  23.          add a,l
  24.          add a,(hl)
  25.          add a,(ix+-128)
  26.          add a,(iy+127)
  27.          add hl,bc
  28.          add hl,de
  29.          add hl,hl
  30.          add hl,sp
  31.          add ix,bc
  32.          add ix,de
  33.          add ix,sp
  34.          add iy,bc
  35.          add iy,de
  36.          add iy,sp
  37.          add ix,ix
  38.          add iy,iy
  39.          and h'00
  40.          and h'ff
  41.          and a
  42.          and l
  43.          and (hl)
  44.          and (ix+-128)
  45.          and (iy+127)
  46.          bit 0,a
  47.          bit 0,l
  48.          bit 0,(hl)
  49.          bit 0,(ix+-128)
  50.          bit 0,(iy+127)
  51.          bit 7,a
  52.          bit 7,l
  53.          bit 7,(hl)
  54.          bit 7,(ix+-128)
  55.          bit 7,(iy+127)
  56.          call h'00
  57.          call h'ff
  58.          call longtest
  59.          call nz,h'00
  60.          call z,h'ff
  61.          call nc,longtest
  62.          call c,longtest
  63.          call po,h'00
  64.          call pe,1000
  65.          call p,128
  66.          call m,0
  67.          ccf
  68.          cp h'00
  69.          cp h'ff
  70.          cp a
  71.          cp l
  72.          cp (hl)
  73.          cp (ix+-128)
  74.          cp (iy+127)
  75.          cpd
  76.          cpdr
  77.          cpi
  78.          cpir
  79.          cpl
  80.          daa
  81.          dec a
  82.          dec l
  83.          dec (hl)
  84.          dec (ix+-128)
  85.          dec (iy+127)
  86.          dec bc
  87.          dec de
  88.          dec hl
  89.          dec sp
  90.          dec ix
  91.          dec iy
  92.          di
  93.          djnz rtest
  94.          ei
  95.          ex af,af'
  96.          ex de,hl
  97.          ex (sp),hl
  98.          ex (sp),ix
  99.          ex (sp),iy
  100.          exx
  101.          halt
  102.          im 0
  103.          im 1
  104.          im 2
  105.          in a,(h'00)
  106.          in a,(h'ff)
  107.          inc a
  108.          inc l
  109.          inc (hl)
  110.          inc (ix+-128)
  111.          inc (iy+127)
  112.          inc bc
  113.          inc de
  114.          inc hl
  115.          inc sp
  116.          inc ix
  117.          inc iy
  118.          ind
  119.          indr
  120.          ini
  121.          inir
  122.          in a,(c)
  123.          in c,(c)
  124.          in l,(c)
  125.          jp h'00
  126.          jp h'ff
  127.          jp longtest
  128.          jp nz,h'00
  129.          jp z,h'ff
  130.          jp nc,longtest
  131.          jp c,longtest
  132.          jp po,h'00
  133.          jp pe,1000
  134.          jp p,128
  135.          jp m,0
  136.          jp (hl)
  137.          jp (ix)
  138.          jp (iy)
  139.          jr c,rtest
  140. rtest:   jr rtest
  141.          djnz rtest
  142.          jr nc,rtest
  143.          jr nz,rtest
  144.          jr z,rtest
  145.          ld a,i
  146.          ld a,r
  147.          ld a,(longtest)
  148.          ld a,(h'00)
  149.          ld a,(h'ff)
  150.          ld a,(hl)
  151.          ld a,(bc)
  152.          ld a,(de)
  153.          ld a,l
  154.          ld l,a
  155.          ld l,h
  156.          ld hl,(h'00)
  157.          ld hl,(longtest)
  158.          ld bc,(h'00)
  159.          ld de,(longtest)
  160.          ld sp,(h'ff)
  161.          ld ix,(h'00)
  162.          ld iy,(h'ff)
  163.          ld ix,(longtest)
  164.          ld i,a
  165.          ld r,a
  166.          ld a,h'00
  167.          ld l,h'ff
  168.          ld bc,h'00
  169.          ld de,h'ff
  170.          ld sp,h'ff
  171.          ld hl,longtest
  172.          ld hl,1000
  173.          ld ix,1000
  174.          ld iy,longtest
  175.          ld a,(hl)
  176.          ld l,(hl)
  177.          ld a,(ix+127)
  178.          ld a,(iy+127)
  179.          ld a,(iy-128)
  180.          ld l,(iy+-128)
  181.          ld l,(iy-128)
  182.          ld sp,hl
  183.          ld sp,ix
  184.          ld sp,iy
  185.          ld (1000),a
  186.          ld (longtest),a
  187.          ld (1000),hl
  188.          ld (longtest),hl
  189.          ld (1000),bc
  190.          ld (longtest),bc
  191.          ld (1000),de
  192.          ld (longtest),de
  193.          ld (1000),sp
  194.          ld (longtest),sp
  195.          ld (1000),ix
  196.          ld (longtest),iy
  197.          ld (hl),h'00
  198.          ld (hl),h'ff
  199.          ld (ix+127),h'00
  200.          ld (ix+-128),h'ff
  201.          ld (iy-128),h'ff
  202.          ld (iy-128),-128
  203.          ld (iy-128),127
  204.          ld (iy+127),0
  205.          ld (hl),a
  206.          ld (hl),l
  207.          ld (ix+127),a
  208.          ld (iy+-128),l
  209.          ld (iy-128),l
  210.          ld (bc),a
  211.          ld (de),a
  212.          ld (hl),a
  213.          ldd
  214.          lddr
  215.          ldi
  216.          ldir
  217.          neg
  218.          nop
  219.          or h'00
  220.          or h'ff
  221.          or a
  222.          or l
  223.          or (hl)
  224.          or (ix+-128)
  225.          or (iy+127)
  226.          out (c),a
  227.          out (c),l
  228.          outd
  229.          otdr
  230.          outi
  231.          otir
  232.          out (h'00),a
  233.          out (h'ff),a
  234.          pop bc
  235.          pop de
  236.          pop hl
  237.          pop af
  238.          pop ix
  239.          pop iy
  240.          push bc
  241.          push de
  242.          push hl
  243.          push af
  244.          push ix
  245.          push iy
  246.          res 0,a
  247.          res 0,l
  248.          res 0,(hl)
  249.          res 0,(ix+-128)
  250.          res 0,(iy+127)
  251.          res 7,a
  252.          res 7,l
  253.          res 7,(hl)
  254.          res 7,(ix+-128)
  255.          res 7,(iy+127)
  256.          ret
  257.          ret nz
  258.          ret z
  259.          ret nc
  260.          ret c
  261.          ret po
  262.          ret pe
  263.          ret p
  264.          ret m
  265.          reti
  266.          retn
  267.          rl a
  268.          rl l
  269.          rl (hl)
  270.          rl (ix+-128)
  271.          rl (iy+127)
  272.          rla
  273.          rlc a
  274.          rlc l
  275.          rlc (hl)
  276.          rlc (ix+-128)
  277.          rlc (iy+127)
  278.          rlca
  279.          rld
  280.          rr a
  281.          rr l
  282.          rr (hl)
  283.          rr (ix+-128)
  284.          rr (iy+127)
  285.          rra
  286.          rrc a
  287.          rrc l
  288.          rrc (hl)
  289.          rrc (ix+-128)
  290.          rrc (iy+127)
  291.          rrca
  292.          rrd
  293.          rst h'00
  294.          rst h'20
  295.          rst h'38
  296.          sbc a,h'00
  297.          sbc a,h'ff
  298.          sbc a,a
  299.          sbc a,l
  300.          sbc a,(hl)
  301.          sbc a,(ix+-128)
  302.          sbc a,(iy+127)
  303.          sbc hl,bc
  304.          sbc hl,de
  305.          sbc hl,hl
  306.          sbc hl,sp
  307.          scf
  308.          set 0,a
  309.          set 0,l
  310.          set 0,(hl)
  311.          set 0,(ix+-128)
  312.          set 0,(iy+127)
  313.          set 7,a
  314.          set 7,l
  315.          set 7,(hl)
  316.          set 7,(ix+-128)
  317.          set 7,(iy+127)
  318.          sla a
  319.          sla l
  320.          sla (hl)
  321.          sla (ix+-128)
  322.          sla (iy+127)
  323.          sra a
  324.          sra l
  325.          sra (hl)
  326.          sra (ix+-128)
  327.          sra (iy+127)
  328.          srl a
  329.          srl l
  330.          srl (hl)
  331.          srl (ix+-128)
  332.          srl (iy+127)
  333.          sub h'00
  334.          sub h'ff
  335.          sub a
  336.          sub l
  337.          sub (hl)
  338.          sub (ix+-128)
  339.          sub (iy+127)
  340.          xor h'00
  341.          xor h'ff
  342.          xor a
  343.          xor l
  344.          xor (hl)
  345.          xor (ix+-128)
  346.          xor (iy+127)
  347.  
  348. synctst1:
  349.          adc a,forward2
  350.          adc a,forward1
  351.          adc a,(ix+forward3)
  352.          adc a,(iy+forward4)
  353.          add a,forward2
  354.          add a,forward1
  355.          add a,(ix+forward3)
  356.          add a,(iy+forward4)
  357.          and forward2
  358.          and forward1
  359.          and (ix+forward3)
  360.          and (iy+forward4)
  361.          bit bit0,a
  362.          bit bit0,l
  363.          bit bit0,(hl)
  364.          bit bit0,(ix+forward3)
  365.          bit bit0,(iy+forward4)
  366.          bit bit7,a
  367.          bit bit7,l
  368.          bit bit7,(hl)
  369.          bit bit7,(ix+forward3)
  370.          bit bit7,(iy+forward4)
  371.          call forward2
  372.          call forward1
  373.          call longtest
  374.          call nz,forward2
  375.          call z,forward1
  376.          call nc,longtest
  377.          call c,longtest
  378.          call po,forward2
  379.          call pe,1000
  380.          call p,128
  381.          call m,0
  382.          cp forward2
  383.          cp forward1
  384.          cp (ix+forward3)
  385.          cp (iy+forward4)
  386.          dec (ix+forward3)
  387.          dec (iy+forward4)
  388.          in a,(forward2)
  389.          in a,(forward1)
  390.          inc (ix+forward3)
  391.          inc (iy+forward4)
  392.          jp forward2
  393.          jp forward1
  394.          jp longtest
  395.          jp nz,forward2
  396.          jp z,forward1
  397.          jp nc,longtest
  398.          jp c,longtest
  399.          jp po,forward2
  400.          jp pe,1000
  401.          jp p,128
  402.          jp m,0
  403.          ld a,(longtest)
  404.          ld a,(forward2)
  405.          ld a,(forward1)
  406.          ld ix,(forward2)
  407.          ld iy,(forward1)
  408.          ld ix,(longtest)
  409.          ld a,forward2
  410.          ld bc,forward2
  411.          ld sp,forward1
  412.          ld hl,longtest
  413.          ld hl,1000
  414.          ld ix,1000
  415.          ld iy,longtest
  416.          ld a,(ix+forward4)
  417.          ld l,(iy+forward3)
  418.          ld (1000),a
  419.          ld (longtest),a
  420.          ld (1000),hl
  421.          ld (longtest),hl
  422.          ld (1000),bc
  423.          ld (longtest),bc
  424.          ld (1000),ix
  425.          ld (longtest),iy
  426.          ld (hl),forward2
  427.          ld (hl),forward1
  428.          ld (ix+forward4),forward2
  429.          ld (ix+forward3),forward1
  430.          ld (ix+forward4),a
  431.          ld (iy+forward3),l
  432.          or forward2
  433.          or forward1
  434.          or (ix+forward3)
  435.          or (iy+forward4)
  436.          out (forward2),a
  437.          out (forward1),a
  438.          res bit0,a
  439.          res bit0,l
  440.          res bit0,(hl)
  441.          res bit0,(ix+forward3)
  442.          res bit0,(iy+forward4)
  443.          res bit7,a
  444.          res bit7,l
  445.          res bit7,(hl)
  446.          res bit7,(ix+forward3)
  447.          res bit7,(iy+forward4)
  448.          rl (ix+forward3)
  449.          rl (iy+forward4)
  450.          rlc (ix+forward3)
  451.          rlc (iy+forward4)
  452.          rr (ix+forward3)
  453.          rr (iy+forward4)
  454.          rrc (ix+forward3)
  455.          rrc (iy+forward4)
  456.          sbc a,forward2
  457.          sbc a,forward1
  458.          sbc a,(ix+forward3)
  459.          sbc a,(iy+forward4)
  460.          set bit0,a
  461.          set bit0,l
  462.          set bit0,(hl)
  463.          set bit0,(ix+forward3)
  464.          set bit0,(iy+forward4)
  465.          set bit7,a
  466.          set bit7,l
  467.          set bit7,(hl)
  468.          set bit7,(ix+forward3)
  469.          set bit7,(iy+forward4)
  470.          sla (ix+forward3)
  471.          sla (iy+forward4)
  472.          sra (ix+forward3)
  473.          sra (iy+forward4)
  474.          srl (ix+forward3)
  475.          srl (iy+forward4)
  476.          sub forward2
  477.          sub forward1
  478.          sub (ix+forward3)
  479.          sub (iy+forward4)
  480.          xor forward2
  481.          xor forward1
  482.          xor (ix+forward3)
  483.          xor (iy+forward4)
  484.  
  485. synctst2:
  486. longtest:.equ forward1,h'ff
  487.          .equ forward2,h'00
  488.          .equ forward3,-128
  489.          .equ forward4,127
  490.          .equ bit0,0
  491.          .equ bit7,7
  492.          .end
  493.